package com.jiang.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiang.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService extends IService<User> {
    public int getUserMessage(@Param("username") String username, @Param("password") String password);
    public List<User> getAllUser(@Param("username")String username,@Param("pageStart")int pageStart,@Param("pageSize")int pageSize);
    IPage<User> selectPage(Page<User> page);
    public int getUserCounts(@Param("username") String username);
    public int updateState(Integer id, Boolean state);

    public int addUser(User user);

    public User getUpdateUser(int id);

    public int editUser(User user);

    public int deleteUser(int id);

    public int selectcount(@Param("username") String username);

}
